package com.foreknow.dao;

import com.foreknow.model.Employee;

import java.util.HashMap;
import java.util.List;

public interface EmployeeManager {
    /**
     * 根据状态(state)进行模糊查询
     * @param params
     * @return
     */
    public List<Employee> selectEmployeeByIdLike(HashMap<String,Object> params);

    /**
     *根据登录名和密码查询
     * @param params
     * @return
     */
    public List<Employee> selectEmployeeByLoginLike(HashMap<String,Object> params);

    /**
     *如果传入id就根据id查询,没有传入id就根据loginname和password查询,否则查询sex为难
     * @param params
     * @return
     */
    public List<Employee> selectEmployeeChoose(HashMap<String,Object> params);

    /**
     *动态条件
     * @param params
     * @return
     */
    public List<Employee> findEmployeeLike(HashMap<String,Object> params);

    /**
     *
     * @param params
     * @return
     */
    public List<Employee> selectEmployeeLike(HashMap<String,Object> params);

    /**
     *
     * @param id
     * @return
     */
    public Employee selectEmployeeWithId(Integer id);

    /**
     *修改用户信息
     * @param employee
     */
    public void updateEmployeeIfNecessary(Employee employee);

    /**
     *
     * @param ids
     * @return
     */
    public List<Employee> selectEmployeeIn(List<Integer> ids);

    /**
     *
     * @param employee
     * @return
     */
    public List<Employee> selectEmployeeLikeName(Employee employee);

}
